/*
 * @Descripttion: demo,测试手写的reducer
 * @Author: lukasavage
 * @Date: 2021-11-27 10:14:17
 * @LastEditors: lukasavage
 * @LastEditTime: 2022-09-27 22:56:02
 */
import { combineReducers } from 'redux'
function calculateNum(init, action) {
    console.log(init, action);
    switch (action.type) {
        case 'INCREASE':
            return init += 1;
        case 'DECREASE':
            return init -= 1;
        default:
            return init;
    }
}

export default combineReducers({
    calculateNum
});